<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>安装通-平台推送询价</title>
<link href="/res/css/respective/priceAsk/buyer.css" rel="stylesheet">
<style>
	.mainContentWhite .dateInput{
		width: 90px;
		padding-left: 5px;
		background: url(/res/images/backicon.png) no-repeat 90px -200px;
	}
	.warp.warp-supplier .back-main button.tabButt {
		background-color: white;
	}
	.ppSelect select{
	padding-left: 5px;
	}
	input[type="text"]{
	padding-left: 5px;
	}
</style>
<script src="/res/js/common/jquery.1.9.1.min.js"></script>
<script type="text/javascript" src="/res/third/layer/layer.js"></script>
<script type="text/javascript" src="/res/third/layer/layer.extends.js"></script>
</head>
<body>
[#assign menucode="pushEnquiry"/]
	<div class="warp">
		[#include "/front/common/front_headAzt.html"]
		<div class="backcontent">
			[#include "/front/common/front_leftAzt.html"]
			<div class="back-main">
				<div class="mainContent">
		<div class="mainContentWhite">
			<h1>平台推送询价</h1>
			<hr> 
			<table class="table noBorder">
				<form method="post" action="/enquiry/pushEnquiry_${qtype!1}/list">
				<caption class="buyerTab"> 
					<div style="border: 1px solid #ebebeb;height: 44px;">
						<button class="tabButt [#if qtype?? && qtype == 2]tabButtActiveG[/#if]" style="padding: 14px 10px;" onclick="location.href = '/enquiry/pushEnquiry_2/list'" type="button">采购询价</button>
                        <button class="tabButt [#if qtype?? && qtype == 1]tabButtActiveG[/#if]" style="padding: 14px 10px;" onclick="location.href = '/enquiry/pushEnquiry_1/list'" type="button">预算询价</button>
					</div> 	
                 	<div style="overflow: hidden; display: block; margin-top: 35px 0px 10px 0px; width: 100%;">
                   <div class="supplySearch" style="float: left; margin-left: 5px;">
                   	<label>询价名称：</label>
                <input class="time" style="width: 110px;" type="text" value="${psd.enquiryName!}" name="enquiryName" placeholder="请输入询价名称" >
				<label>状态：</label>
                <div class="ppSelect" style="border: none;">
                                    <select name="state" style="border: 1px solid #e9e9e9;width: 100%;padding-right: 0px;">
										<option value="">进行中</option>
										<option value="5" [#if psd.state?? && psd.state == 5]selected[/#if]>已截止</option>
                                       <option value="0" [#if psd.state?? && psd.state == 0]selected[/#if]>所有状态</option>
                                    </select>
                                </div>
				
				[#if qtype?? && qtype == 1]
				<label>清单：</label>
                <div class="ppSelect">
                                    <select name="hasList" style="width: 100%;padding-right: 0px;">
                                        <option value="">全部</option>
										<option value="2" [#if psd.hasList?? && psd.hasList == 2]selected[/#if]>有清单</option>
										<option value="1" [#if psd.hasList?? && psd.hasList == 1]selected[/#if]>无清单</option>
                                    </select>
                                </div>
				[/#if]
				[#if qtype?? && qtype == 2]
				<label>类型：</label>
                <div class="ppSelect">
                                    <select name="type" style="width: 100%; padding-right: 0px;">
                                        <option value="">所有类型</option>
										<option value="1" [#if psd.type?? && psd.type == 1]selected[/#if]>公开</option>
										<option value="2" [#if psd.type?? && psd.type == 2]selected[/#if]>不公开</option>
                                    </select>
                                </div>
				[/#if]
			<label>发布时间：</label>
            <input type="text" class="dateInput laydate-icon time"   autocomplete="off"
										   onclick="SelectDate(this,'yyyy-MM-dd hh:mm');"  name="publishTimeStart" value="${psd.publishTimeStart!}" id="start">                   
            <label>至</label>                        
            <input type="text" class="dateInput laydate-icon time"    autocomplete="off"
										   onclick="SelectDate(this,'yyyy-MM-dd hh:mm');"  name="publishTimeEnd" value="${psd.publishTimeEnd!}" id="end"/>                   
            <input type="hidden" name="pageNo" id="pageNo" value="${psd.pageNo!}">
                   </div>
                                <div class="supplySearch" >
				
            <button onclick="projectsosuo()" class="souSuo souSuoG" style="margin-top: 10px;min-width: auto;">搜索
            </button>   
			</div> 
			</div>
				</caption>
				</form>
				<thead>
							<tr>
								<th style="width: 15%;">询价名称</th>
								<th style="width: 25%;">采购商</th>
								<th>状态</th>
								[#if qtype?? && qtype == 1]
									<th>设备清单</th>
								[/#if]
								[#if qtype?? && qtype == 2]
									<th>公开类型</th>
								[/#if]
								<th>发布日期</th>
								<th>截止日期</th>
								<th>参与供应商</th>
								<th style="width: 10%;border-right: 1px solid #e9e9e9;">操作</th>
							</tr>
							</thead>
							<tbody>
							<!--默认显示8行-->
								[#list desginList.list as enq]
									<tr>
										<td class="textoverflow"> 
											<a class="opLink" style="cursor: pointer;" target="_blank" href="/xmh/${enq.enqId!}">${enq.enquiryName!}</a>
										</td>
										<td class="[#if enq.sign ?? && enq.sign > 0]supTip[/#if]">
											[#if enq.sign ?? && enq.sign > 0]<a class="bugetTypeIconG">金</a>[/#if]
											[#assign realCompanyName = '']
											[#if enq.ppCompany??]
												[#assign realCompanyName = enq.ppCompany!]
											[#elseif enq.parentCompany??]
												[#assign realCompanyName = enq.parentCompany!]
											[#else]
												[#assign realCompanyName = enq.companyName!]
											[/#if]
											<span class="defultSpan">${myStringUtils.hideCompanyName(realCompanyName)}</span>
										</td>
										<td>
											<img alt="" src="/res/images/priceAsk/clock1.png" style="vertical-align: middle;"/>
											<small style="font-size: 14px;">${(enq.state == 1)?string('进行中' , '已截止')}</small>
										</td>
										[#if qtype?? && qtype == 2]
										<td>[#if enq.pubtype??]${(enq.pubtype == 1)?string('公开' , '不公开')}[/#if]</td>
										[/#if]
										[#if qtype?? && qtype == 1]
										<td>[#if (enq.excelpath?? && enq.excelpath != '') || (enq.needdesign?? && enq.needdesign == 2)]有清单[#else]无清单[/#if]</td>
										[/#if]
										<td>${enq.pubdate?string('yyyy-MM-dd')}</td>
										<td>${enq.deadline?string('yyyy-MM-dd')}</td>
										<td>${enq.quoteCount!0}家</td>
										<td style="border-right: 1px solid #e9e9e9;">
											[#if enq.state == 1]<a href="/enquiry/quote?enquiryId=${enq.enqId!}" target="_blank">查看详情</a>[/#if]
										</td>
									</tr>
								[/#list]
							</tbody>
							<tfoot class="goFenYe">
								[@fenye p = desginList form = 'infoForm' /]
                            </tfoot>
			</table>
			 
			 
		</div>
	</div>
			</div>
			<!-- 底部菜单-->
			[#include "/front/common/front_footerAzt.html"]
		</div>
 
	</div>
	
	<script src="/res/js/common/common.js"></script>
	<script src="/res/third/laydate/laydate.js"></script>
	<script type="text/javascript">
	var start = {
		elem: '#start',
		format: 'YYYY-MM-DD',
		min: '2015-06-16',  //设定最小日期为当前日期
		max: '2099-06-16', //最大日期
		istime: false,
		istoday: false,
		choose: function(datas){
			end.min = datas; //开始日选好后，重置结束日的最小日期
			end.start = datas //将结束日的初始值设定为开始日
		}
	};

	var end = {
		elem: '#end',
		format: 'YYYY-MM-DD',
		min: '2015-06-16',
		max: '2099-06-16',
		istime: false,
		istoday: false,
		choose: function(datas){
			start.max = datas; //结束日选好后，重置开始日的最大日期
		}
	};
	laydate(start);
	laydate(end);

	$(function(){
		var tipsMsg = "${tipsMsg!''}";
		if(tipsMsg.length > 0){
			layer.msg(tipsMsg , {time : 3000});
		}
	});
</script>
</body>
</html>
